﻿using System.Collections.Generic;

namespace QG.FrontDesk.Model
{
    public class RoleInfo
    {
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
        public RoleInfo()
        {
            this.Admin_RoleInfo = new HashSet<Admin_roleinfo>();
            this.Role_PowerInfo = new HashSet<Role_PowerInfo>();
        }
        [System.ComponentModel.DataAnnotations.Key]
        public int RoleId { get; set; }
        public string RoleName { get; set; }
        public string Remark { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<Admin_roleinfo> Admin_RoleInfo { get; set; }
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<Role_PowerInfo> Role_PowerInfo { get; set; }

    }
}
